﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using KBVault.Web.Infrastructure;
using KBVault.DAL.Entities;
using KBVault.DAL.Repository;

namespace KBVault.Web.Public
{
    public partial class Print : KBVaultBasePage
    {
        new protected void Page_Load(object sender, EventArgs e)
        {
            base.Page_Load(sender, e);
            Article a = ArticleRepository.Get(ActiveArticleId);
            if (!Page.IsPostBack)
            {                
                articleContent.InnerHtml = Server.HtmlDecode(a.Content);
                articleTitle.InnerText = a.Title;
            }
        }
    }
}